{% extends "admin/change_form.html" %}

{% block object-tools %}
    {{ block.super }}
    {% if show_cancel_button %}
        <div class="object-tools">
            <ul class="object-tools">
                <li>
                    <a style="background-color: red;color: white;padding: 5px 10px;border-radius: 5px;margin-top: 10px; text-decoration: none;" href="{% url 'admin:ingaragereport_cancel' object_id %}" class="deletelink">取消报备</a>
                </li>
            </ul>
        </div>
    {% endif %}
{% endblock %}
